<?php

class mdl_t_admin extends CI_Model{

	function __construct(){
		parent::__construct();
	}

	function get_all(){
		$this->db->flush_cache();
		$this->db->select('*');
		$this->db->from('reff_unit');
		return $this->db->get();

	}

	function get_by_like($id,$escape_self){
		$this->db->flush_cache();
		$this->db->select('*');
		$this->db->from('reff_unit');
		$this->db->like('kd_unit', $id, 'after');
		$this->db->where('kd_unit !=', $id . $escape_self);
		return $this->db->get();
	}

	function get_by_id($id){
		$this->db->flush_cache();
		$this->db->select('*');
		$this->db->from('t_admin');
		$this->db->where('id', $id);
		return $this->db->get();
	}




}


?>